﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master" CodeBehind="ViewRoomType.aspx.vb" Inherits="Phila.ViewRoomType" %>
    
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        View RoomType</h1>
    <%-- <div class="actions">
        <a href="EditRoomType.aspx">Add RoomType</a></div>
    <asp:GridView ID="gvRoomType" runat="server" ShowHeader="true" ShowFooter="true" AutoGenerateColumns="false"
        Width="100%" CssClass="grid">
        <Columns>
            <asp:BoundField HeaderText="Id" DataField="Id" />
            <asp:BoundField HeaderText="Name" DataField="Name" />
            <asp:TemplateField HeaderText="Action">
                <ItemTemplate>
                    <asp:LinkButton ID="edit" runat="server" Text="Edit" CommandName="Edit" />
                    <asp:LinkButton ID="delete" runat="server" Text="Delete" CommandName="Delete" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>--%>
    <div align="center">
        <asp:Label ID="lblMsg" runat="server"></asp:Label></div>
    <radg:radgrid id="radGrid" runat="server" width="99%" pagesize="20" allowsorting="True"
        allowmultirowselection="False" skin="Telerik" allowpaging="True" showgrouppanel="True"
        autogeneratecolumns="False" gridlines="None" enableajax="true">
                    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                    <MasterTableView Width="100%" GroupLoadMode="Client" GroupsDefaultExpanded="False" CommandItemDisplay="Top" DataKeyNames="ID">
                        <CommandItemTemplate>
                            <table width="100%" border="0">
                                <tr>
                                    <td valign="top" align="right">
                                        <a href="EditRoomType.aspx">
                                            <img src="../RadControls/Grid/Skins/AddRecord.gif" align="absmiddle" />Add New</a>
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <Columns>
                            <radG:GridTemplateColumn AllowFiltering="False" Groupable="false" UniqueName="TemplateEditColumn"
                                HeaderText="Edit">
                                <ItemTemplate>
                                    <a href="EditRoomType.aspx?id=<%#DataBinder.Eval(Container.DataItem,"ID")%>">
                                        <img src="../RadControls/Grid/Skins/Edit.gif" alt="Edit" title="Edit" style="border: 0px;" />
                                    </a>
                                </ItemTemplate>
                                <HeaderStyle Width="30px" />
                            </radG:GridTemplateColumn>
                            <radG:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton"
                                DataField="Name">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Adult" HeaderText="Adult" HeaderButtonType="TextButton"
                                DataField="Adult">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Child" HeaderText="Child" HeaderButtonType="TextButton"
                                DataField="Child">
                            </radG:GridBoundColumn>
                            <radG:GridCheckBoxColumn DataField="IsActive" HeaderText="IsActive" SortExpression="IsActive"
                                UniqueName="IsActive" EditFormColumnIndex="1">
                                <HeaderStyle Width="100px" />
                            </radG:GridCheckBoxColumn>
                            <%--<radG:GridButtonColumn UniqueName="DeleteColumn" Text="Delete" CommandName="Delete"
                                ButtonType="ImageButton" ImageUrl="../Images/Delete.gif" ConfirmText="Are you sure you want to delete this record?">
                                <HeaderStyle Width="30px" />
                            </radG:GridButtonColumn>--%>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowGroupExpandCollapse="true">
                        <Selecting AllowRowSelect="False" />
                    </ClientSettings>
                </radg:radgrid>
</asp:Content>
